package com.huice.cases;

import org.testng.annotations.Test;
import com.huice.base.TestBase;

public class Huice02 extends TestBase{

	@Test
	public void huice02(){		
		locator.linkTo("http://www.huicewang.com/ecshop/");
		locator.click("首页", "留言板");
		locator.sendKeys("留言板","邮箱","zach_lau@163.com");
		locator.click("留言板", "投诉");
		locator.sendKeys("留言板","标题","投诉田老师");
		locator.sendKeys("留言板","内容","红烧肉盖饭,肉太少");
		locator.click("留言板", "提交");
		locator.getText("留言板", "成功提示");		
		checkPoint.equals("您的留言已成功发表, 请等待管理员的审核!", locator.getText("留言板", "成功提示"), "留言失败");
		checkPoint.result("留言成功");
	}

}
